package org.tof.hotel.entity;

import org.tof.hotel.entity.Customer;

import java.util.ArrayList;
import java.util.Date;

/** Represents bill */
public class Bill {
    public Bill(Customer customer) {
        //set bill creation date
        created = new Date();
        setCustomer(customer);
    }

    // ----- fields ----- //
    private Customer customer;
    private Date created;
    private Date payed;
    private int amountToPay;
    


    private static ArrayList<Bill> bills = new ArrayList<Bill>();

    // ----- getters & setters ----- //

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getPayed() {
        return payed;
    }

    public void setPayed(Date payed) {
        this.payed = payed;
    }
}
